<div class='fui-page  fui-page-current'>
    <div class="fui-header">
		<div class="title">头像/昵称</div>
		<div class="fui-header-right">&nbsp;</div>
	</div>

	<div class='fui-content' >
		<style type="text/css">
			.fui-list-inner {font-size: 0.75rem;}
			.fui-cell-group .fui-cell {padding: 0.7rem 0.5rem;}
			.fui-cell-group .fui-cell .fui-cell-label {padding-left: 0;}
			.fui-list-media img {width: 2.5rem; height: 2.5rem;}
			#file-avatar {position: absolute; top: 0; left: 0; right: 0; bottom: 0; direction: rtl; z-index: 3;opacity: 0;}
		</style>

		<div class="fui-list-group" id="btn-avatar">
			<div class="fui-list" ng-click="image(pagedata.item,'avatar')">
				<div class="fui-list-inner">修改头像</div>
				<div class="fui-list-media">
					<img ng-src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/gw-user.png'}}" id="avatar"/>
				</div>
			</div>
		</div>
		<div class="fui-cell-group">
			<div class="fui-cell must ">
				<div class="fui-cell-label ">修改昵称</div>
				<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="请输入您的昵称"  ng-model="pagedata.item.nickname" /></div>
			</div>
		</div>
		<div class="fui-cell-group">
                <div class="fui-cell small ">
                    <div class="fui-cell-info">
                        <label class="checkbox-inline">
                            <input type="checkbox" value="1" ng-model="pagedata.item.check" class="fui-checkbox-primary" id="agree" ng-checked="pagedata.item.check==1"/> 我已经阅读并了解了<a id="btn-apply" ng-click="pagedata.show_xieyi=true;" style="color:#337ab7;">【{{pagedata.setmobile.xieyi_title || '客户隐私协议'}}】</a>。
                        </label>
                    </div>
                </div>
        </div>
		<div style="padding-top: 1rem;">
			<div id='btn-submit' ng-click="post(pagedata.item,'post')" class='btn btn-success block'>保存</div>
		</div>
	</div>
	<div ng-include="sys_html('common/_xieyi',true)"></div>
</div>
	<script>
	console.log('setmember');
	scope.pagedata.item.needcheck=1;
	scope.pagedata.setmember={}
	scope.pagedata.setmobile=scope.pagedata.setmobile?scope.pagedata.setmobile:{}
	scope.pagedata.setmobile.user_xieyi=scope.pagedata.item.user_xieyi;
	scope.pagedata.setmobile.xieyi_title=scope.pagedata.item.xieyi_title;
	</script>